<?php
/**
 * 积分赠品后台管理栏目新增文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	largess
 */
require_once('../config/config.inc.php');
require_once("../class/largess.class.php");
require_once ('../../useradmin/checklogin.php');

$objWebInit = new largess();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$objWebInit->arrGSmarty = $arrGSmarty;
//图片上传参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->db();


$arrToplargess = array();
$strWhere = "where pass=1 and bonus <= ".$_SESSION['user_bonus'];
$arrToplargess = $objWebInit->getInfoList($strWhere,"  ORDER BY recommendflag DESC,submit_date DESC", '', '',true,null,false);


// 输出到模板
$arrMOutput["smarty_assign"]["info"] = $_SESSION;
$arrMOutput["smarty_assign"]['arrToplargess'] = $arrToplargess;
$arrMOutput["smarty_assign"]['largessImg'] = $arrGPic['FileCallPath'];

//全站公用block
@include '../../_block.php';

$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['adminu_main_dir'].'largess.html';
$objWebInit->output($arrMOutput);
?>